package com.di.service;

import com.di.dao.IUserDao;

/**
 * 构造器注入
 *
 * @author luowj12
 * @since 2021/6/16 9:04
 */
public class UserService {
    private IUserDao userDao;

    public UserService(IUserDao userDao) {
        this.userDao = userDao;
    }

    public void loginUser() {
        userDao.loginUser();
    }
}
